sh build.sh
rm -rf testcase testcase_print out_test.out match.csv
git clone https://gitee.com/kang9kang/testcase
rm -rf ./testcase/test_g2
python3 auto_test.py ./build/monopoly_run ./testcase
if [ $? -eq 0 ]; then
    cat match.csv
    echo "*****  ALL CASES PASSED!  *****"
    return 0
else
    if [ -f "match.csv" ]; then
        echo ""
        echo "\t*****  PASSED CASES  *****"
        echo ""
        cat match.csv | grep 'pass,pass,pass'
        echo ""
        echo "\t*****  FAILED CASES  *****"
        echo ""
        cat match.csv | grep -v -E 'pass,pass,pass|out_name,row_num,out,out_out'
    fi
    return 1
fi